﻿using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class SceneMain : MonoBehaviour
{

    // Use this for initialization
    void Start()
    {
        PublicData.DestroyInstance();
        PublicData.GetInstance().isVideoMode = false; // disable video mode
    }

    // Update is called once per frame
    void Update()
    {

    }




    public void OnBtn_Start_Clicked()
    {
        PublicData.GetInstance().isVideoMode = false;
        if (input.text != "")
        {
            PublicData.GetInstance().player_name = input.text;
        }
        Debug.Log("Player Name=" + PublicData.GetInstance().player_name);


        SceneMgr.Load(DATA.RES_SCENE_BATTLE);

    }

    [SerializeField]
    private UnityEngine.UI.Text input;

}
